home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMHTMLSelectElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  13KB  |  335 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMHTMLSelectElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMHTMLSelectElement_h__
  6. #define __gen_nsIDOMHTMLSelectElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMHTMLElement_h__
  10. #include "nsIDOMHTMLElement.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIDOMHTMLOptionsCollection_h__
  14. #include "nsIDOMHTMLOptionsCollection.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIDOMHTMLSelectElement */
  23. #define NS_IDOMHTMLSELECTELEMENT_IID_STR "a6cf9090-15b3-11d2-932e-00805f8add32"
  24.  
  25. #define NS_IDOMHTMLSELECTELEMENT_IID \
  26.   {0xa6cf9090, 0x15b3, 0x11d2, \
  27.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  28.  
  29. /**
  30.  * The nsIDOMHTMLSelectElement interface is the interface to a [X]HTML
  31.  * select element.
  32.  *
  33.  * For more information on this interface please see
  34.  * http://www.w3.org/TR/DOM-Level-2-HTML/
  35.  *
  36.  * @status FROZEN
  37.  */
  38. class NS_NO_VTABLE nsIDOMHTMLSelectElement : public nsIDOMHTMLElement {
  39.  public: 
  40.  
  41.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSELECTELEMENT_IID)
  42.  
  43.   /* readonly attribute DOMString type; */
  44.   NS_IMETHOD GetType(nsAString & aType) = 0;
  45.  
  46.   /* attribute long selectedIndex; */
  47.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) = 0;
  48.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) = 0;
  49.  
  50.   /* attribute DOMString value; */
  51.   NS_IMETHOD GetValue(nsAString & aValue) = 0;
  52.   NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  53.  
  54.   /* attribute unsigned long length; */
  55.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  56.   NS_IMETHOD SetLength(PRUint32 aLength) = 0;
  57.  
  58.   /* readonly attribute nsIDOMHTMLFormElement form; */
  59.   NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  60.  
  61.   /* readonly attribute nsIDOMHTMLOptionsCollection options; */
  62.   NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions) = 0;
  63.  
  64.   /* attribute boolean disabled; */
  65.   NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  66.   NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  67.  
  68.   /* attribute boolean multiple; */
  69.   NS_IMETHOD GetMultiple(PRBool *aMultiple) = 0;
  70.   NS_IMETHOD SetMultiple(PRBool aMultiple) = 0;
  71.  
  72.   /* attribute DOMString name; */
  73.   NS_IMETHOD GetName(nsAString & aName) = 0;
  74.   NS_IMETHOD SetName(const nsAString & aName) = 0;
  75.  
  76.   /* attribute long size; */
  77.   NS_IMETHOD GetSize(PRInt32 *aSize) = 0;
  78.   NS_IMETHOD SetSize(PRInt32 aSize) = 0;
  79.  
  80.   /* attribute long tabIndex; */
  81.   NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
  82.   NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
  83.  
  84.   /* void add (in nsIDOMHTMLElement element, in nsIDOMHTMLElement before)  raises (DOMException); */
  85.   NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before) = 0;
  86.  
  87.   /* void remove (in long index); */
  88.   NS_IMETHOD Remove(PRInt32 index) = 0;
  89.  
  90.   /* void blur (); */
  91.   NS_IMETHOD Blur(void) = 0;
  92.  
  93.   /* void focus (); */
  94.   NS_IMETHOD Focus(void) = 0;
  95.  
  96. };
  97.  
  98. /* Use this macro when declaring classes that implement this interface. */
  99. #define NS_DECL_NSIDOMHTMLSELECTELEMENT \
  100.   NS_IMETHOD GetType(nsAString & aType); \
  101.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex); \
  102.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex); \
  103.   NS_IMETHOD GetValue(nsAString & aValue); \
  104.   NS_IMETHOD SetValue(const nsAString & aValue); \
  105.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  106.   NS_IMETHOD SetLength(PRUint32 aLength); \
  107.   NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  108.   NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions); \
  109.   NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  110.   NS_IMETHOD SetDisabled(PRBool aDisabled); \
  111.   NS_IMETHOD GetMultiple(PRBool *aMultiple); \
  112.   NS_IMETHOD SetMultiple(PRBool aMultiple); \
  113.   NS_IMETHOD GetName(nsAString & aName); \
  114.   NS_IMETHOD SetName(const nsAString & aName); \
  115.   NS_IMETHOD GetSize(PRInt32 *aSize); \
  116.   NS_IMETHOD SetSize(PRInt32 aSize); \
  117.   NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
  118.   NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
  119.   NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before); \
  120.   NS_IMETHOD Remove(PRInt32 index); \
  121.   NS_IMETHOD Blur(void); \
  122.   NS_IMETHOD Focus(void); 
  123.  
  124. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  125. #define NS_FORWARD_NSIDOMHTMLSELECTELEMENT(_to) \
  126.   NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  127.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return _to GetSelectedIndex(aSelectedIndex); } \
  128.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return _to SetSelectedIndex(aSelectedIndex); } \
  129.   NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  130.   NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
  131.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  132.   NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
  133.   NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  134.   NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions) { return _to GetOptions(aOptions); } \
  135.   NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  136.   NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  137.   NS_IMETHOD GetMultiple(PRBool *aMultiple) { return _to GetMultiple(aMultiple); } \
  138.   NS_IMETHOD SetMultiple(PRBool aMultiple) { return _to SetMultiple(aMultiple); } \
  139.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  140.   NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
  141.   NS_IMETHOD GetSize(PRInt32 *aSize) { return _to GetSize(aSize); } \
  142.   NS_IMETHOD SetSize(PRInt32 aSize) { return _to SetSize(aSize); } \
  143.   NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
  144.   NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
  145.   NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before) { return _to Add(element, before); } \
  146.   NS_IMETHOD Remove(PRInt32 index) { return _to Remove(index); } \
  147.   NS_IMETHOD Blur(void) { return _to Blur(); } \
  148.   NS_IMETHOD Focus(void) { return _to Focus(); } 
  149.  
  150. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  151. #define NS_FORWARD_SAFE_NSIDOMHTMLSELECTELEMENT(_to) \
  152.   NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  153.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
  154.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
  155.   NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  156.   NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  157.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  158.   NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
  159.   NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  160.   NS_IMETHOD GetOptions(nsIDOMHTMLOptionsCollection * *aOptions) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptions(aOptions); } \
  161.   NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  162.   NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  163.   NS_IMETHOD GetMultiple(PRBool *aMultiple) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMultiple(aMultiple); } \
  164.   NS_IMETHOD SetMultiple(PRBool aMultiple) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMultiple(aMultiple); } \
  165.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  166.   NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  167.   NS_IMETHOD GetSize(PRInt32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  168.   NS_IMETHOD SetSize(PRInt32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  169.   NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
  170.   NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
  171.   NS_IMETHOD Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(element, before); } \
  172.   NS_IMETHOD Remove(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(index); } \
  173.   NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
  174.   NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } 
  175.  
  176. #if 0
  177. /* Use the code below as a template for the implementation class for this interface. */
  178.  
  179. /* Header file */
  180. class nsDOMHTMLSelectElement : public nsIDOMHTMLSelectElement
  181. {
  182. public:
  183.   NS_DECL_ISUPPORTS
  184.   NS_DECL_NSIDOMHTMLSELECTELEMENT
  185.  
  186.   nsDOMHTMLSelectElement();
  187.  
  188. private:
  189.   ~nsDOMHTMLSelectElement();
  190.  
  191. protected:
  192.   /* additional members */
  193. };
  194.  
  195. /* Implementation file */
  196. NS_IMPL_ISUPPORTS1(nsDOMHTMLSelectElement, nsIDOMHTMLSelectElement)
  197.  
  198. nsDOMHTMLSelectElement::nsDOMHTMLSelectElement()
  199. {
  200.   /* member initializers and constructor code */
  201. }
  202.  
  203. nsDOMHTMLSelectElement::~nsDOMHTMLSelectElement()
  204. {
  205.   /* destructor code */
  206. }
  207.  
  208. /* readonly attribute DOMString type; */
  209. NS_IMETHODIMP nsDOMHTMLSelectElement::GetType(nsAString & aType)
  210. {
  211.     return NS_ERROR_NOT_IMPLEMENTED;
  212. }
  213.  
  214. /* attribute long selectedIndex; */
  215. NS_IMETHODIMP nsDOMHTMLSelectElement::GetSelectedIndex(PRInt32 *aSelectedIndex)
  216. {
  217.     return NS_ERROR_NOT_IMPLEMENTED;
  218. }
  219. NS_IMETHODIMP nsDOMHTMLSelectElement::SetSelectedIndex(PRInt32 aSelectedIndex)
  220. {
  221.     return NS_ERROR_NOT_IMPLEMENTED;
  222. }
  223.  
  224. /* attribute DOMString value; */
  225. NS_IMETHODIMP nsDOMHTMLSelectElement::GetValue(nsAString & aValue)
  226. {
  227.     return NS_ERROR_NOT_IMPLEMENTED;
  228. }
  229. NS_IMETHODIMP nsDOMHTMLSelectElement::SetValue(const nsAString & aValue)
  230. {
  231.     return NS_ERROR_NOT_IMPLEMENTED;
  232. }
  233.  
  234. /* attribute unsigned long length; */
  235. NS_IMETHODIMP nsDOMHTMLSelectElement::GetLength(PRUint32 *aLength)
  236. {
  237.     return NS_ERROR_NOT_IMPLEMENTED;
  238. }
  239. NS_IMETHODIMP nsDOMHTMLSelectElement::SetLength(PRUint32 aLength)
  240. {
  241.     return NS_ERROR_NOT_IMPLEMENTED;
  242. }
  243.  
  244. /* readonly attribute nsIDOMHTMLFormElement form; */
  245. NS_IMETHODIMP nsDOMHTMLSelectElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  246. {
  247.     return NS_ERROR_NOT_IMPLEMENTED;
  248. }
  249.  
  250. /* readonly attribute nsIDOMHTMLOptionsCollection options; */
  251. NS_IMETHODIMP nsDOMHTMLSelectElement::GetOptions(nsIDOMHTMLOptionsCollection * *aOptions)
  252. {
  253.     return NS_ERROR_NOT_IMPLEMENTED;
  254. }
  255.  
  256. /* attribute boolean disabled; */
  257. NS_IMETHODIMP nsDOMHTMLSelectElement::GetDisabled(PRBool *aDisabled)
  258. {
  259.     return NS_ERROR_NOT_IMPLEMENTED;
  260. }
  261. NS_IMETHODIMP nsDOMHTMLSelectElement::SetDisabled(PRBool aDisabled)
  262. {
  263.     return NS_ERROR_NOT_IMPLEMENTED;
  264. }
  265.  
  266. /* attribute boolean multiple; */
  267. NS_IMETHODIMP nsDOMHTMLSelectElement::GetMultiple(PRBool *aMultiple)
  268. {
  269.     return NS_ERROR_NOT_IMPLEMENTED;
  270. }
  271. NS_IMETHODIMP nsDOMHTMLSelectElement::SetMultiple(PRBool aMultiple)
  272. {
  273.     return NS_ERROR_NOT_IMPLEMENTED;
  274. }
  275.  
  276. /* attribute DOMString name; */
  277. NS_IMETHODIMP nsDOMHTMLSelectElement::GetName(nsAString & aName)
  278. {
  279.     return NS_ERROR_NOT_IMPLEMENTED;
  280. }
  281. NS_IMETHODIMP nsDOMHTMLSelectElement::SetName(const nsAString & aName)
  282. {
  283.     return NS_ERROR_NOT_IMPLEMENTED;
  284. }
  285.  
  286. /* attribute long size; */
  287. NS_IMETHODIMP nsDOMHTMLSelectElement::GetSize(PRInt32 *aSize)
  288. {
  289.     return NS_ERROR_NOT_IMPLEMENTED;
  290. }
  291. NS_IMETHODIMP nsDOMHTMLSelectElement::SetSize(PRInt32 aSize)
  292. {
  293.     return NS_ERROR_NOT_IMPLEMENTED;
  294. }
  295.  
  296. /* attribute long tabIndex; */
  297. NS_IMETHODIMP nsDOMHTMLSelectElement::GetTabIndex(PRInt32 *aTabIndex)
  298. {
  299.     return NS_ERROR_NOT_IMPLEMENTED;
  300. }
  301. NS_IMETHODIMP nsDOMHTMLSelectElement::SetTabIndex(PRInt32 aTabIndex)
  302. {
  303.     return NS_ERROR_NOT_IMPLEMENTED;
  304. }
  305.  
  306. /* void add (in nsIDOMHTMLElement element, in nsIDOMHTMLElement before)  raises (DOMException); */
  307. NS_IMETHODIMP nsDOMHTMLSelectElement::Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before)
  308. {
  309.     return NS_ERROR_NOT_IMPLEMENTED;
  310. }
  311.  
  312. /* void remove (in long index); */
  313. NS_IMETHODIMP nsDOMHTMLSelectElement::Remove(PRInt32 index)
  314. {
  315.     return NS_ERROR_NOT_IMPLEMENTED;
  316. }
  317.  
  318. /* void blur (); */
  319. NS_IMETHODIMP nsDOMHTMLSelectElement::Blur()
  320. {
  321.     return NS_ERROR_NOT_IMPLEMENTED;
  322. }
  323.  
  324. /* void focus (); */
  325. NS_IMETHODIMP nsDOMHTMLSelectElement::Focus()
  326. {
  327.     return NS_ERROR_NOT_IMPLEMENTED;
  328. }
  329.  
  330. /* End of implementation class template. */
  331. #endif
  332.  
  333.  
  334. #endif /* __gen_nsIDOMHTMLSelectElement_h__ */
  335.